<?php
namespace app\common\process;

class ActivityBalance extends Base {

    public function ongoing() {
        $loader = loader();
        $post = $loader->loadAny('request', 'ActivityBalance')->ongoing();
        $model = $loader->loadModel('ActivityBalance');
        $loader->loadAny('search', 'ActivityBalance')->ongoing($model);
        if($post['limit']) {
            $list = $model->paginate($post['limit']);
        } else {
            $list = $model->select();
        }
        return $list;
    }
}
